<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title>用户列表</title>
	</head>
	<body>
		<h3 style="color: red;">用户列表:用户数量 [[${userlist.size()}]]</h3>
		<table border="1" width="500px">
			<tr>
				<th>序号</th>
				<th>用户id</th>
				<th>用户姓名</th>
				<th>角色id</th>
				<th>操作</th>
			</tr>
			<tr th:each="user,status : ${userlist}">
				<td th:text="${status.index+1}"></td>
				<td th:text="${user.usrId}"></td>
				<td th:text="${user.usrName}"></td>
				<td th:text="${user.usrRoleId}"></td>
				<td><a href="add.html">添加</a>  | <a th:href="@{view.html(usrId=${user.usrId})}">查看</a>
					<a th:href="@{view.html/{usrId}(usrId=${user.usrId})}">查看(rest)</a>
				</td>
			</tr>
		</table>
	</body>
</html>
